package com.ruoyi.dmsIms.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dmsIms.mapper.InterOperationMapper;
import com.ruoyi.dmsIms.domain.InterOperation;
import com.ruoyi.dmsIms.service.IInterOperationService;

/**
 * 接口执行Service业务层处理
 * 
 * @author ZhangSiRui
 * @date 2022-01-27
 */
@Service
public class InterOperationServiceImpl implements IInterOperationService 
{
    @Autowired
    private InterOperationMapper interOperationMapper;

    /**
     * 查询接口执行
     * 
     * @param id 接口执行主键
     * @return 接口执行
     */
    @Override
    public InterOperation selectInterOperationById(Long id)
    {
        return interOperationMapper.selectInterOperationById(id);
    }

    /**
     * 查询接口执行列表
     * 
     * @param interOperation 接口执行
     * @return 接口执行
     */
    @Override
    public List<InterOperation> selectInterOperationList(InterOperation interOperation)
    {
        return interOperationMapper.selectInterOperationList(interOperation);
    }

    /**
     * 新增接口执行
     * 
     * @param interOperation 接口执行
     * @return 结果
     */
    @Override
    public int insertInterOperation(InterOperation interOperation)
    {
        interOperation.setCreateTime(DateUtils.getNowDate());
        return interOperationMapper.insertInterOperation(interOperation);
    }

    /**
     * 修改接口执行
     * 
     * @param interOperation 接口执行
     * @return 结果
     */
    @Override
    public int updateInterOperation(InterOperation interOperation)
    {
        interOperation.setUpdateTime(DateUtils.getNowDate());
        return interOperationMapper.updateInterOperation(interOperation);
    }

    /**
     * 批量删除接口执行
     * 
     * @param ids 需要删除的接口执行主键
     * @return 结果
     */
    @Override
    public int deleteInterOperationByIds(Long[] ids)
    {
        return interOperationMapper.deleteInterOperationByIds(ids);
    }

    /**
     * 删除接口执行信息
     * 
     * @param id 接口执行主键
     * @return 结果
     */
    @Override
    public int deleteInterOperationById(Long id)
    {
        return interOperationMapper.deleteInterOperationById(id);
    }
}
